import request from '@/utils/request'

// 查询仓位占用记录列表
export function listPositionRecord(query) {
  return request({
    url: '/order/positionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询仓位占用记录详细
export function getPositionRecord(id) {
  return request({
    url: '/order/positionRecord/' + id,
    method: 'get'
  })
}

// 新增仓位占用记录
export function addPositionRecord(data) {
  return request({
    url: '/order/positionRecord',
    method: 'post',
    data: data
  })
}

// 修改仓位占用记录
export function updatePositionRecord(data) {
  return request({
    url: '/order/positionRecord',
    method: 'put',
    data: data
  })
}

// 删除仓位占用记录
export function delPositionRecord(id) {
  return request({
    url: '/order/positionRecord/' + id,
    method: 'delete'
  })
}
